Auto merge of #3552 - keeperofdakeys:proc-macro-doc-test, r=alexcrichton
authorbors <bors@rust-lang.org>
Wed, 18 Jan 2017 02:45:13 +0000 (02:45 +0000)
committerbors <bors@rust-lang.org>
Wed, 18 Jan 2017 02:45:13 +0000 (02:45 +0000)
commit493abf58f66f21b24f11b63fe6a4e5a5c10fdd2c
treef56cbb280fe1a1f37857be880849bc97e97eb761
parent82ea17575f1ec5630d5d7dcd72f2913f008c98ed
parentb3b8b7e007a8b1b8e58518018d1644c700621117
Auto merge of #3552 - keeperofdakeys:proc-macro-doc-test, r=alexcrichton

Allow doc tests to run on proc macro crates

Fixes https://github.com/rust-lang/cargo/issues/3545

Since `--test` works for rustc, doctests should also work. Currently cargo isn't setup to run doctests for proc macro crates, this PR adds them to the list.

Currently rustdoc can run doctests for proc-macro crates, but the `phase_2_configure_and_expand` call` triggers the following warning:

```
the `#[proc_macro_derive]` attribute is only usable with crates of the `proc-macro` crate type
```

So perhaps this PR should wait until I've finished creating/testing the PR for rustc.
src/cargo/core/manifest.rs